package com.ruoyi.exam.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.exam.domain.ExamQuestionImportLog;
import com.ruoyi.exam.vo.ExamQuestionImportLogVo;
import com.ruoyi.exam.mapper.ExamQuestionImportLogMapper;
import com.ruoyi.exam.service.IExamQuestionImportLogService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 题目导入记录Service业务层处理
 *
 * @author Tellsea
 * @date 2025-05-30
 */
@Service
public class ExamQuestionImportLogServiceImpl extends ServiceImpl<ExamQuestionImportLogMapper, ExamQuestionImportLog> implements IExamQuestionImportLogService {

    @Override
    public TableDataInfo<ExamQuestionImportLogVo> queryList(ExamQuestionImportLogVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<ExamQuestionImportLogVo> queryAll(ExamQuestionImportLogVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public ExamQuestionImportLogVo queryById(Long logId) {
        return this.baseMapper.queryById(logId);
    }
}
